import 'package:xreader/generated/json/base/json_convert_content.dart';
import 'package:xreader/dto/app_config_vo_entity.dart';

AppConfigVoEntity $AppConfigVoEntityFromJson(Map<String, dynamic> json) {
	final AppConfigVoEntity appConfigVoEntity = AppConfigVoEntity();
	final List<int>? down = jsonConvert.convertListNotNull<int>(json['down']);
	if (down != null) {
		appConfigVoEntity.down = down;
	}
	final Map<String?,int?>? border = jsonConvert.convert<Map<String?,int?>>(json['border']);
	if (border != null) {
		appConfigVoEntity.border = border;
	}
	final int? totalNum = jsonConvert.convert<int>(json['totalNum']);
	if (totalNum != null) {
		appConfigVoEntity.totalNum = totalNum;
	}
	final String? updateSign = jsonConvert.convert<String>(json['updateSign']);
	if (updateSign != null) {
		appConfigVoEntity.updateSign = updateSign;
	}
	final int? totalPage = jsonConvert.convert<int>(json['totalPage']);
	if (totalPage != null) {
		appConfigVoEntity.totalPage = totalPage;
	}
	final int? pageSize = jsonConvert.convert<int>(json['pageSize']);
	if (pageSize != null) {
		appConfigVoEntity.pageSize = pageSize;
	}
	final int? chapterCacheTmsec = jsonConvert.convert<int>(json['chapterCacheTmsec']);
	if (chapterCacheTmsec != null) {
		appConfigVoEntity.chapterCacheTmsec = chapterCacheTmsec;
	}
	final int? contCacheTmsec = jsonConvert.convert<int>(json['contCacheTmsec']);
	if (contCacheTmsec != null) {
		appConfigVoEntity.contCacheTmsec = contCacheTmsec;
	}
	return appConfigVoEntity;
}

Map<String, dynamic> $AppConfigVoEntityToJson(AppConfigVoEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['down'] =  entity.down;
	data['border'] = entity.border;
	data['totalNum'] = entity.totalNum;
	data['updateSign'] = entity.updateSign;
	data['totalPage'] = entity.totalPage;
	data['pageSize'] = entity.pageSize;
	data['chapterCacheTmsec'] = entity.chapterCacheTmsec;
	data['contCacheTmsec'] = entity.contCacheTmsec;
	return data;
}